<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SPTypeToMessageTypeRelationship.aspx.cs" Inherits="SPTypeToMessageTypeRelationship" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 740px">
        <tr>
            <td colspan="3">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <strong>
                Message Type &lt;-&gt; Service Provider Type</strong></td>
        </tr>
        <tr>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 44px; height: 27px" align="right">
                Description</td>
            <td colspan="2" style="height: 27px">
                <asp:TextBox ID="txtDescription" runat="server" Width="341px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 44px" align="right">
                Version</td>
            <td colspan="2">
                <asp:TextBox ID="txtVersion" runat="server" Width="341px"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="> >" OnClick="btnSearch_Click" Visible="False" /></td>
        </tr>
        <tr>
            <td align="right" style="width: 44px">
                &nbsp;</td>
            <td colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 44px">
            </td>
            <td colspan="2">
                <asp:GridView ID="gvMessageType" DataKeyNames="MessageTypeID" runat="server" AllowPaging="True" AllowSorting="false"
     AutoGenerateColumns="false"
     EmptyDataText="no results found"
     PagerSettings-Mode="NextPrevious" PageSize="5" PagerSettings-NextPageText="next" PagerSettings-PreviousPageText="prev" Width="657px" Visible="False" OnPageIndexChanging="gvMessageType_PageIndexChanging" >
     
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <RowStyle BackColor="#EFF3FB" Wrap="True" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
    <AlternatingRowStyle BackColor="White" Wrap="True" />    
    <Columns>
             <asp:TemplateField HeaderText="Select">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server" />
                        
                    </ItemTemplate>
                 <ItemStyle Width="10%" />
             </asp:TemplateField> 
                             <asp:BoundField HeaderText="Description" DataField="Description"/>
                <asp:BoundField HeaderText="Version" DataField="Version"/>
                                        
    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
 </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 44px">
            </td>
            <td style="width: 316px">
                <asp:DropDownList ID="ddlSource" runat="server" Width="290px" DataTextField="DisplayName" DataValueField="ServiceProviderTypeID">
                </asp:DropDownList></td>
            <td align="right" style="width: 406px">
                <asp:DropDownList ID="ddlDestination" runat="server" Width="299px" DataTextField="DisplayName" DataValueField="ServiceProviderTypeID">
                </asp:DropDownList>
                <asp:Button ID="btnSearchWithSPs" runat="server" Text="> >" OnClick="btnSearchWithSPs_Click" /></td>
        </tr>
        <tr>
            <td style="width: 44px">
            </td>
            <td style="width: 316px">
            </td>
            <td align="right" style="width: 406px">
                &nbsp;<asp:Button ID="btnAddToList" runat="server" Text="Add to List" OnClick="btnAddToList_Click" Visible="False" /></td>
        </tr>
        <tr>
            <td style="width: 44px">
            </td>
            <td colspan="2">
                <asp:GridView ID="gvRelationship" DataKeyNames="ServiceProviderTypeMessageTypeID" runat="server" AllowPaging="True" AllowSorting="false"
     AutoGenerateColumns="false"
     EmptyDataText="No Pending Relationships"
     PagerSettings-Mode="NextPrevious" PagerSettings-NextPageText="next" PagerSettings-PreviousPageText="prev" Width="657px" PageSize="5" OnPageIndexChanging="gvRelationship_PageIndexChanging" >
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" Wrap="True" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                    <AlternatingRowStyle BackColor="White" Wrap="True" />
                    <Columns>                        
                        <asp:TemplateField HeaderText="Select">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkSelect" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Message Type" DataField="Description"/>

                        <asp:BoundField HeaderText="Source SPT" DataField="SourceDisplayName"/>
                        
                <asp:BoundField HeaderText="Destination SPT" DataField="DestinationDisplayName"/>
                    </Columns>
                    <PagerSettings Mode="NumericFirstLast"/>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 44px">
            </td>
            <td style="width: 316px">
            </td>
            <td align="right" style="width: 406px">
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" Visible="False" />
                <asp:Button ID="btnSave" runat="server" Text="Save Relationship" OnClick="btnSave_Click" Visible="False" />
                <asp:TextBox Visible="false" ID="tbPage" runat="server">0</asp:TextBox><asp:TextBox Visible="false" ID="tbPage2" runat="server">0</asp:TextBox></td>
        </tr>
    </table>
</asp:Content>

